// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

#include <stdio.h>
#include <tchar.h>

#include <iostream>
#include <Windows.h>

#define changeClr(clr, oldClr)\
	{\
	HANDLE hConsole = ::GetStdHandle(STD_OUTPUT_HANDLE);\
	CONSOLE_SCREEN_BUFFER_INFO csbi;\
	::GetConsoleScreenBufferInfo(hConsole, &csbi);\
	oldClr = csbi.wAttributes;\
	::SetConsoleTextAttribute(hConsole, clr);\
	}
#define restoreTextAttr(textAttr)\
	{\
	HANDLE hConsole = ::GetStdHandle(STD_OUTPUT_HANDLE);\
	::SetConsoleTextAttribute(hConsole, textAttr);\
	}

#define printFunName()\
	{\
	unsigned int uOldClr = FOREGROUND_INTENSITY;\
	changeClr(FOREGROUND_BLUE|FOREGROUND_GREEN, uOldClr);\
	std::cout<<__FUNCTION__<<std::endl;\
	restoreTextAttr(uOldClr);\
	}


// TODO: reference additional headers your program requires here
